import Vue from 'vue'
import Router from 'vue-router'
import Goods from './views/Goods'
import ShoppingCart from './views/ShoppingCart'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: '/',
      name: 'Goods',
      component: Goods
    },
    {
      path: '/cart',
      name: 'shopping-cart',
      component: ShoppingCart
    },
    {
      path: '*',
      name: 'other',
      component: Goods
    }
  ]
})
